package com.tran.app.data

import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.Index
import androidx.room.PrimaryKey

@Entity(
    indices = [Index(value = ["UserInfo_name", "Course_id"], unique = true)]
)
data class CourseSelectionCancellation(
    @PrimaryKey(autoGenerate = true) var id: Long = 0L,
    @ColumnInfo(name = "teacher_account") var teacherAccount: String,
    @ColumnInfo(name = "UserInfo_name") var studentId: Int,
    @ColumnInfo(name = "Course_id") var courseId: Int,
    @ColumnInfo(name = "CourseSelection_id") var courseSelectionId: Long
)